home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Goodies / 3rd Party Demos / 3rd Party Plugins / System / FKey Plugin / README < prev   
Encoding:
Text File  |  1999-09-01  |  1.0 KB  |  24 lines

  1. FKEY Plugin
  2. (freeware)
  3.  
  4. Purple E Software
  5. http://www.norcom2000.com/users/ejt/purplee.html
  6.  
  7.  
  8. This plugin allows you to execute the old-fashioned FKEY code in REALbasic versions 1.x and 2.x. Some common FKEYs available in the MacOS include FKEY 3 and FKEY 4 for taking screenshots. All of the shortcuts pertinent to screenshots are also available. For example, when using FKEY 4, if the CAPS lock is depressed, the screenshot will be limited to one window (whichever window you select).
  9.  
  10. I realize that this can be accomplished through various XCMDs, but I find it less tedious to have a native plugin. Now I won't lose it. :-) I made it for myself first and now offer it free for you to abuse at your own peril. 
  11.  
  12. The syntax is as follows:
  13. DoFKey(i as integer) as integer
  14.  
  15. 'i' is an integer that represents the FKEY number you wish to execute. The function returns
  16. a meaningless integer.
  17.  
  18. For example, to take a full screenshot, simply place this code in the Action event of a PushButton.
  19.  
  20. dim i as integer
  21. i=DoFKey(3)
  22.  
  23. Enjoy!
  24. -Erick